package day09test;

public class Dog extends Animal{
    public Dog() {
    }

    public Dog(String name, String age, String color) {
        super(name, age, color);
    }
    @Override
    public void eat(){
        System.out.println("狗在啃骨头");
    }
    public void layEggs(){
        System.out.println(getColor()+ getAge()+ "岁的狗"+getName()+"在看家");
    }
}
